//
//  HMFreeConsultViewTableViewCell.m
//  HappyTravel
//
//  Created by JiePan’s Mac on 2018/8/6.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import "HMFreeConsultViewTableViewCell.h"

@interface HMFreeConsultViewTableViewCell ()

@property (nonatomic, strong) UILabel *nameLabel;//患者
@property (nonatomic, strong) UILabel *informationLabel;//信息

@end

@implementation HMFreeConsultViewTableViewCell

#pragma mark - init
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.nameLabel];
        [self.contentView addSubview:self.informationLabel];
    }
    return self;
}

#pragma mark - getter
- (UILabel *)nameLabel {
    return _nameLabel ?: ({
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 80, 40)];
        _nameLabel.textColor = [UIColor lightGrayColor];
        _nameLabel.text = @"";
        _nameLabel.font = [UIFont systemFontOfSize:14];
        _nameLabel;
    });
}

- (UILabel *)informationLabel {
    return _informationLabel ?: ({
        _informationLabel = [[UILabel alloc]initWithFrame:CGRectMake(240, 0, 100, 40)];
        _informationLabel.textColor = [UIColor darkTextColor];
        _informationLabel.text = [NSString stringWithFormat:@"%@ %@ %@",@"name",@"sex",@"age"];
        _informationLabel.font = [UIFont boldSystemFontOfSize:14];
        _informationLabel.textAlignment = NSTextAlignmentCenter;
        _informationLabel;
    });
}






@end
